/// <reference path="../lib/ts/box2d.d.ts" />
/// <reference path="../lib/ts/easeljs.d.ts" />
/// <reference path="../lib/ts/keymaster.d.ts" />
/// <reference path="../lib/ts/jquery.d.ts" />
/// <reference path="../classes/World.ts" />
/// <reference path="../classes/Unit.ts" />
/// <reference path="../classes/Category.ts" />
/// <reference path="../classes/Controller.ts" />
/// <reference path="../classes/PlateBlock.ts" />
/// <reference path="../classes/BrickBlock.ts" />
/// <reference path="../maps/Stage_1.ts" />
var b2FixtureDef = Box2D.Dynamics.b2FixtureDef;
var b2PolygonShape = Box2D.Collision.Shapes.b2PolygonShape;
var b2World = Box2D.Dynamics.b2World;
var b2Body = Box2D.Dynamics.b2Body;
var b2BodyDef = Box2D.Dynamics.b2BodyDef;
var b2Vec2 = Box2D.Common.Math.b2Vec2;
var b2Fixture = Box2D.Dynamics.b2Fixture;
var b2MassData = Box2D.Collision.Shapes.b2MassData;
var b2DebugDraw = Box2D.Dynamics.b2DebugDraw;
var b2ContactListener = Box2D.Dynamics.b2ContactListener;
var Stage = createjs.Stage;
var Sprite = createjs.Sprite;
var SpriteSheet = createjs.SpriteSheet;
var DisplayObject = createjs.DisplayObject;
var requestAnimFrame = (function () {
    return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function (callback) {
        window.setTimeout(callback, 1000 / 60, new Date().getTime());
    };
})();
function toRad(deg) {
    return deg * Math.PI / 180;
}
